<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('工单')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.title}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('详细地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.address}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('联系人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.name}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.mobile}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reservation_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.reservation_time}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('支付状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.paid == 1}
            <label class="control-label">已支付</label>
            {else /}
            <label class="control-label">未支付</label>
            {/if}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.payamount}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('退款金额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund" class="form-control" name="row[refund]" type="text" value="{$row.refund|htmlentities}">
            <input id="c-order_no" class="form-control" name="row[order_no]" type="hidden" value="{$row.order_no|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('取消前状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-old_state" class="form-control" name="row[old_state]" type="hidden" value="{$row.old_state|htmlentities}">
            {if $row.old_state == 0}
            <label class="control-label">待接单</label>
            {elseif  $row.old_state == 1 /}
            <label class="control-label">待上门</label>
            {elseif  $row.old_state == 2 /}
            <label class="control-label">服务中</label>
            {elseif  $row.old_state == 3 /}
            <label class="control-label">已完结</label>
            {elseif  $row.old_state == 100 /}
            <label class="control-label">已取消</label>
            {/if}
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
        </div>
    </div>
</form>
